package com.testDemo.enrty;

/**
 * 测试系统封装异常
 * @author wangmc
 */
public class AopTestException extends RuntimeException {

    public static String ERROR_CODE = "9999";

    private static final long serialVersionUID = 1L;
    private String code;
    private String detail;

    public AopTestException() {

    }

    public AopTestException(String code, String detail) {
        super();
        this.code = code;
        this.detail = detail;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "AopTestException [code=" + code + ", detail=" + detail + "]";
    }

}
